home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tools
/
filer
/
rexx
/
playmoduleold.filer
< prev
next >
Wrap
Text File
|
1995-03-09
|
1KB
|
63 lines
/*
$VER: PlayModule.filer 1.1 (19.12.93)
Author:
Matthias Scheler (tron@lyssa.pb.owl.de)
Function:
Tells DeliTracker via ARexx to play the module supplied as argument.
If DeliTracker is not running it's loaded automatically and the window
is placed on Filer's screen.
Requires:
DeliTracker 1.3x or newer
Call:
PlayModule FILENAME
Example for "Filer.RC":
REXXCLASS "MOD.#?","","PlayModule %s"
*/
PARSE ARG FileName
ADDRESS 'FilerRexx'
OPTIONS RESULTS
GETSCREENNAME
IF RESULT="RESULT" THEN EXIT 5
ScreenName=RESULT
GETSOURCEPATH
IF RESULT="RESULT" THEN EXIT 5
SourceDir=RESULT
IF RIGHT(SourceDir,1)=":" THEN SourceName=SourceDir||FileName
ELSE SourceName=SourceDir||"/"||FileName
PANEL OFF
IF ~SHOW('Ports','rexx_DT') THEN
DO
'STATUS Loading DeliTracker ...'
ADDRESS 'COMMAND' 'DeliTracker PUBSCREEN' ScreenName 'WINDOWXY 0/16'
ADDRESS 'COMMAND' 'WaitForPort rexx_DT'
IF ~SHOW('Ports','rexx_DT') THEN
DO
"HISTORY Can't load DeliTracker !"
PANEL ON
EXIT 10
END
END
'STATUS Loading module "'||SourceName||'" into DeliTracker.'
ADDRESS 'rexx_DT' 'PLAYMOD "'||SourceName||'"'
PANEL ON